package com.ei.itop.common.util;

import javax.servlet.http.Cookie;

public class CookieUtil {

	public static Cookie getCookie(Cookie[] cookies,String key){
		for(int i=0;cookies!=null&&i<cookies.length;i++){
			if(key.equals(cookies[i].getName())){
				return cookies[i];
			}
		}
		return null;
	}
	
}
